#include <iostream>
using namespace std;

typedef struct{
 char data[6666];
 int length;
}zzz;
int main(){
 zzz *L;
 int n;
 char x;
 L = new zzz;
 L->length = 0;
 
 cin >> n;
 for(int i = 0; i < n; i++){
  cin >> x;
  L->data[i] = x;
 }
 L->length = n;
 
 for(int i = 0; i<L->length;i++){
  cout << L->data[i] << " ";
 }
 cout << endl;
 
 cout << L->length << endl;
 
 if(L->length)
  cout << "no" <<endl;
 else
  cout << "yes" <<endl;
  
 cout << L->data[2] << endl;
 
 for(int i = 0; i < L->length;i++){
  if(L->data[i] == 'a')
   cout << i+1 <<endl;
 }
 
 for(int i = L->length; i>3;i--){
  L->data[i] = L->data[i-1];
 }
 L->length++;
 L->data[3] = 'f';
 
 for(int i = 0; i<L->length;i++){
  cout << L->data[i] << " ";
 }
 cout << endl;
 
 for(int i = 2; i<L->length-1;i++)
  L->data[i] = L->data[i+1];
 L->length--;
 for(int i = 0; i<L->length;i++){
  cout << L->data[i] << " ";
 }
 cout << endl;
 
 delete(L);
} 
